<!DOCTYPE html>
<html>
    <head>
        <title>{:lang('XtXxTsXs')}</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="icon" type="image/ico" href="__IMG__/favicon.ico" />
        <link type="text/css" rel="stylesheet" href="__CSS__/vendor/bootstrap/bootstrap.min.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/vendor/font-awesome.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/jump.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/buttons.css" />
    </head>
    <body class="bg-1">
        <div id="wrap">
            <div id="content" class="col-md-12">
                <div class="block_box">
                    {eq name="Code" value="1"}<h1><i class="fa fa-smile-o"></i></h1>{/eq}
                    {eq name="Code" value="2"}<h1><i class="fa fa-frown-o"></i></h1>{/eq}
                    <h3 class="message">{$Msgs}</h3>
                    <p><b id="wait">{$Wait}</b> {:lang('XtXxSdMs')}</p>
                    <div>
                        <button type="button" class="btn btn-cyan" id="href" data-urls="{$Urls}" onclick="jump();">{:lang('XtXxTzLj')}</button>
                        <button type="button" class="btn btn-warning" onclick="stop();">{:lang('XtXxTzTz')}</button>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            (function(){
                var wait = document.getElementById('wait'),href = document.getElementById('href').getAttribute("data-urls");
                var interval = setInterval(function(){
                    var time = --wait.innerHTML;
                    if(time <= 0){
                        location.href = href;
                        clearInterval(interval);
                    };
                }, 1000);
                window.jump = function (){
                    location.href = href;
                }
                window.stop = function (){
                    clearInterval(interval);
                }
            })();
        </script>
    </body>
</html>